<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/ueditor.all.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/js/ajaxfileupload.js"></script>
<style type="text/css">
  .w240{width: 240px;}
  .sml-240{padding-left: 240px;}
</style>

<div id="content" class="">
        <div class="row">
          <div class="col-md-12">
            <!-- Input Fields -->
            <div class="panel">
              <div class="panel-heading">
                <span class="panel-title">{$acname}</span>
              </div>
              <div class="admin-form theme-primary  center-block" style="padding-bottom: 175px; margin-top:30px; width:90%">
              <div class="panel heading-border panel-primary">
                <form class="form-horizontal"  method="post" action="{:U('Column/doeditColumn')}">
                  <div class="panel-body bg-light">
                    <div class="section-divider mt20 mb40"><span> 栏目信息项 </span></div>
                    <!-- .section-divider -->
                     <input type="hidden" name="cid" value="{$data['cid']}">
                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="title" id="title" class="gui-input" placeholder="此处输入标题：必填" value="{$data['title']}">
                        </label>
                        <label  class="button btn-primary w240" >栏目名称：</label>
                      </div>
                    </div>

                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field select " style="width:60%" >
                        <select id="pid" name="pid">
                             <option value="0" <?php if($v['mid'] == 0){echo "selected";} ?> >顶级栏目</option> 
                            {$select}
                        </select>
                        <i class="arrow double"></i>
                      </label>
                        <label  class="button btn-primary w240 ">所属栏目：</label>
                      </div>
                    </div>


                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field select " style="width:60%" >
                        <select id="mid" name="mid">
                             <?php foreach ($model as $k => $v) {  ?>
                            <option value="{$v['mid']}" <?php if($v['mid'] == $data['mid']){echo "selected";} ?> >{$v['title']}</option> 
                            <?php } ?>
                             <option value="0" <?php if($v['mid'] == 0){echo "selected";} ?> >单页模型</option> 
                        </select>
                        <i class="arrow double"></i>
                      </label>
                        <label  class="button btn-primary w240 ">模型：</label>
                      </div>
                    </div>



                     <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="url" id="url" class="gui-input" placeholder="此处输入第三方url：选填" value="{$data['url']}">
                        </label>
                        <label  class="button btn-primary w240" >外部链接：</label>
                      </div>
                    </div>

                    <div class="row">
                      <div class="col-md-4">
                          <div class="section">
                            <div class="smart-widget sm-left sml-120">
                              <label class="field prepend-icon ">
                                <input type="text" name="application" id="application" class="gui-input" placeholder="此处输入模块名：非外部链接下必填" value="{$data['application']}">
                              </label>
                              <label  class="button btn-primary w240" >应用名：</label>
                            </div>
                          </div>
                      </div>
                      <div class="col-md-4">
                          <div class="section">
                            <div class="smart-widget sm-left sml-120">
                              <label class="field prepend-icon ">
                                <input type="text" name="controller" id="controller" class="gui-input" placeholder="此处输入控制器：非外部链接下必填" value="{$data['controller']}">
                              </label>
                              <label  class="button btn-primary w240" >控制器：</label>
                            </div>
                          </div>
                      </div>
                      <div class="col-md-4">
                          <div class="section">
                            <div class="smart-widget sm-left sml-120">
                              <label class="field prepend-icon ">
                                <input type="text" name="function" id="function" class="gui-input" placeholder="此处输入方法名：非外部链接下必填" value="{$data['function']}">
                              </label>
                              <label  class="button btn-primary w240" >方法：</label>
                            </div>
                          </div>
                      </div>
                    </div>
                    
                    <div class="row">
                      <div class="section">
                        <div class="smart-widget sm-left sml-240">
                          <label class="field select " style="width:60%" >
                            <textarea id="pagecontent" style="height:400px; width:95%;margin:0 auto;" name="pagecontent">{$data['pagecontent']}</textarea>
                          <i class="arrow double"></i>
                        </label>
                          <label  class="button btn-primary w240 ">模型：</label>
                        </div>
                      </div>
                    </div>
                </div>
                   
                  <div class="panel-footer text-right">
                    <button type="submit" class="button btn-primary">提交</button>
                    <button type="reset" class="button btn-primary">清空</button>
                  </div>
                  <!-- end .form-footer section -->
                </form>

              </div>

            </div>
            </div>
          </div>



        </div>
</div>




<script type="text/javascript">
   var ue = UE.getEditor('pagecontent');
</script>